package edu.sctu.practice.class02.qiuyangyang.text11;

/**
 * Created by Administrator on 2015/10/12 0012.
 */
public class OurTime {
    private int hour;
    private int minute;
    private int second;

    public OurTime(int hour, int minute, int second) {
        this.hour = 5;
        this.minute = 22;
        this.second = 33;
    }

    public void addHour(int hour) {
        this.hour = hour + 2;
        System.out.println(hour);
    }

    public void addMinute(int minute) {
        this.minute = minute + 2;
        System.out.println(minute);
    }

    public void addSecond(int second) {
        this.second = second + 2;
        System.out.println(second);
    }

    public void subHour(int hour) {
        this.hour = hour - 2;
        System.out.println(hour);
    }

    public void subMinute(int minute) {
        this.minute = minute - 20;
        System.out.println(minute);
    }

    public void subSecond(int second) {
        this.second = second - 35;
        System.out.println(second);
    }


}
